#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
//    m_pCenterWdt = new QWidget();

    m_pTableView = new CTableView();
//    m_pChartView = new CChartView();
    m_pStackedWdt = new QStackedWidget(this);
    m_pStackedWdt->addWidget(m_pTableView);
//    m_pStackedWdt->addWidget(m_pChartView);


    this->setCentralWidget(m_pStackedWdt);

//    connect(m_pTableView->m_pPointcloud,SIGNAL(clicked(bool)),this,SLOT(slot_changeWidget()));
//    connect(m_pChartView->m_pFanhui,SIGNAL(clicked(bool)),this,SLOT(slot_changeWidget_table()));

//    this->setCentralWidget(m_pChartView);

}

MainWindow::~MainWindow()
{
}

void MainWindow::slot_changeWidget()
{
    m_pStackedWdt->setCurrentIndex(1);

}

void MainWindow::slot_changeWidget_table()
{
    m_pStackedWdt->setCurrentIndex(0);


}
